package com.twu.biblioteca;



public class Movie {

    String title;
    int year;
    String director;
    int rating;

    public Movie(){
        title="xyz";
        year=1800;
        director="NA";
        rating=-1;
    }

    public Movie(final String title,final int year,final String director,final int rating){
        updateDetails(title,year,director,rating);

    }

    public final void updateDetails(final String title,final int year,final String director,final int rating){
        this.title=title;
        this.year=year;
        this.director=director;
        this.rating=rating;
    }

    public final String getTitle() {
        return title;
    }

    public final int getYear() {
        return year;
    }

    public final String getDirector() {
        return director;
    }

    public final int getRating() {
        return rating;
    }

}
